package com.firsteapps.mobile.android.puzzle;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.firsteapps.mobile.android.puzzle.util.Utilities;

public class Home extends BaseActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.home);

		findViewById(R.id.back).setVisibility(View.GONE);

		findViewById(R.id.home_about_us).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(Home.this, AboutUs.class);
			}
		});

		findViewById(R.id.home_options).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(Home.this, Options.class);
			}
		});

		findViewById(R.id.home_start_game).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(Home.this, SelectProfile.class);
			}
		});

		findViewById(R.id.home_news).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(Home.this, News.class);
			}
		});

		findViewById(R.id.home_scores).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(Home.this, Scores.class);
			}
		});
	}

}
